package com.logistics.modules.financialManagement.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.logistics.common.utils.PageUtils;
import com.logistics.common.utils.Query;

import com.logistics.modules.financialManagement.dao.FreightDetailsDao;
import com.logistics.modules.financialManagement.entity.FreightDetailsEntity;
import com.logistics.modules.financialManagement.service.FreightDetailsService;


@Service("freightDetailsService")
public class FreightDetailsServiceImpl extends ServiceImpl<FreightDetailsDao, FreightDetailsEntity> implements FreightDetailsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FreightDetailsEntity> page = this.page(
                new Query<FreightDetailsEntity>().getPage(params),
                new QueryWrapper<FreightDetailsEntity>()
        );

        return new PageUtils(page);
    }

}